package com.ethink.order.api.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * TOC销售单导入日志明细 新增请求对象
 *
 * @author default
 * @date 2022-11-22
 */
@Data
public class TocSaleImportLogDetailAddRequest {

    @Schema(description = "导入记录ID")
    private Long logId;

    @Schema(description = "网店订单号")
    private String shopOrderNo;

    @Schema(description = "TOC销售单号")
    private String orderNo;

    @Schema(description = "TOC销售单详号")
    private String detailOrderNo;

    @Schema(description = "商品SKU")
    private String mateSku;

    @Schema(description = "枚举 库存类型:1-正品(zp)|2-瑕疵(cc)")
    private Integer inventoryType = 1;

    @Schema(description = "出库数量")
    private Integer outQty;

    @Schema(description = "销售单价外币")
    private BigDecimal salePriceWb;

    @Schema(description = "仓库code")
    private String subWarehouseCode;

    @Schema(description = "仓库名称")
    private String subWarehouseName;

    @Schema(description = "商品编号")
    private String mateCode;

    @Schema(description = "商品名称")
    private String mateName;

    @Schema(description = "商品SKU名称")
    private String mateSkuName;

    @Schema(description = "大类编号")
    private String generaCode;

    @Schema(description = "大类编号名称")
    private String generaCodeName;

    @Schema(description = "中类编号")
    private String minorDefectsCode;

    @Schema(description = "中类编号名称")
    private String minorDefectsCodeName;

    @Schema(description = "小类编号")
    private String subclassCode;

    @Schema(description = "小类编号名称")
    private String subclassCodeName;

    @Schema(description = "商品分类")
    private String categoryName;

    @Schema(description = "品牌编码")
    private String brandCode;

    @Schema(description = "品牌名称")
    private String brandName;

    @Schema(description = "商品条码")
    private String internationCode;

    @Schema(description = "包装单位编码")
    private String unitCode;

    @Schema(description = "包装单位名称")
    private String unitName;

    @Schema(description = "商品规格")
    private String productSpecification;

    @Schema(description = "原产国")
    private String countryOfOrigin;

    @Schema(description = "下单时间")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date orderTime;


}
